import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '项目',
    align: "center", resizable: true,
    dataIndex: 'projectId'
  },
  {
    title: '核心数据展示内容',
    align: "center", resizable: true,
    dataIndex: 'coreData'
  },
  {
    title: '项目进度（百分比）',
    align: "center", resizable: true,
    dataIndex: 'progress'
  },
  {
    title: '总任务数',
    align: "center", resizable: true,
    dataIndex: 'totalTasks'
  },
  {
    title: '已完成任务数',
    align: "center", resizable: true,
    dataIndex: 'completedTasks'
  },
  {
    title: '关联文件记录ID',
    align: "center", resizable: true,
    dataIndex: 'fileRecordId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  projectId: {title: '项目',order: 0,view: 'text', type: 'string',},
  coreData: {title: '核心数据展示内容',order: 1,view: 'textarea', type: 'string',},
  progress: {title: '项目进度（百分比）',order: 2,view: 'number', type: 'number',},
  totalTasks: {title: '总任务数',order: 3,view: 'number', type: 'number',},
  completedTasks: {title: '已完成任务数',order: 4,view: 'number', type: 'number',},
  fileRecordId: {title: '关联文件记录ID',order: 5,view: 'text', type: 'string',},
};
